﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
public partial class GUI_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ddlCountry.DataSource = CustomerBus.CountryList();
        ddlCountry.SelectedValue = "Vietnam";
        GetCustomers();
    }


    protected void btnReset_Click(object sender, EventArgs e)
    {
        txtCustomerID.Text = "";
        txtCompanyName.Text = "";
        txtContactName.Text = "";
        txtContactTitle.Text = "";
        txtAddress.Text = "";
        txtCity.Text = "";
        txtPhone.Text = "";
        txtFax.Text = "";
        ddlCountry.SelectedValue = "Vietnam";
    }

    private void GetCustomers() {
        GridView1.DataSource = CustomerBus.getListCustomers();
        GridView1.DataBind();
    }
}